package builder;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * @ClassName BuilderPatternDemo
 * @Description 建造者模式
 * @Author leejiliang
 * @DateTime 2021/3/4 16:01
 * @Version 1.0
 */
public class BuilderPatternDemo {

	public static void main(String[] args) {
		final Bill.Builder builder = new Bill.Builder(BigDecimal.valueOf(100), "张三");
		final Bill bill = builder
				.setId(1L)
				.setBillNo("123")
				.setMemo("租金尾款")
				.setPayDate(LocalDate.now())
				.setType("租金").build();

	}
}
